// eslint-disable-next-line no-shadow
export enum StatisticsType {
  BytesInBysteOut = 0,
  MessageIn = 1,
  TopicNum = 2,
  BrokerNum = 3
}

export interface ClusterProperties {
  clusterName: string;
  zookeepers: string;
  bootstrapServers: string;
  safeProtocol: Record<string, string|number>;
  jmxAuth:Record<string, string|number>;
}

// 实时流量数据
export interface RealTimeFlowData {
  name: string;
  avg: number;
  last1Min: number;
  last5Min: number;
  last15Min: number;
}

// 历史流量统计查询
export interface HistoryFlowQuery {
  statisticType: StatisticsType; // 统计类型
  range: string[];
}

// 接入集群
export interface ClusterInfo {
  clusterId: string;
  clusterName: string;
  topicCnt: number;
  brokerCnt: number;
  consumerCnt: number;
  regionCnt: number;
  controllerId: string;
  monitorStatus: string;
}
